package com.xinyi.order.provdier.repository.po.es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.Mapping;

@Data
@Document(indexName = "yunji", type = "order")
@Mapping(mappingPath = "orderSearch_mapping.json")
public class OrderEsPo {

    @Id
    private Integer  orderItemId;
    /**
     * 订单编号
     */
    @Field
    private String orderId;
    /**
     * 下单人id
     */
    @Field
    private Integer userId;
    /**
     * 下单人名字
     */
    @Field
    private String userName;
    /**
     * 下单时间
     */
    @Field
    private Long orderTime;
    /**
     * 支付时间
     */
    @Field
    private Long payTime;
    /**
     * 订单类型1-内购 2-积分
     */
    @Field
    private Integer orderType;
    /**
     * 订单状态
     */
    @Field
    private Integer orderStatus;
    /**
     * 商品id
     */
   @Field
    private String itemId;
    /**
     * 商品名
     */
    @Field
    private String itemName;

    @Field
    private String skuCode;

    /**
     * 残次等级
     */
    @Field
    private Integer defectiveLevel;
    @Field
    private Integer itemPrice;
    @Field
    private String shippedPhone;
    @Field
    private String shippedProvince;
    @Field
    private String shippedCity;
    @Field
    private String shippedZone;
    @Field
    private String shippedDetail;
    @Field
    private String shippedName;

    /**
     * 购买数量
     */
    @Field
    private Integer buyCount;
    /**
     * 积分价
     */
    @Field
    private Integer itemCoupon;
    /**
     * 评价状态
     */
    @Field
    private String evaluationStatus;
    /**
     * 订单取消时间
     */
    @Field
    private Long cancelTime;
    /**
     * 订单发货时间
     */
    @Field
    private Long orderShipmentTime;

}
